package com.cosmoplat.xikai.business.job;

import com.cosmoplat.xikai.business.service.BaseSafetyStockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName SafeStockQtyCheckTask
 * @Description 安全库存检查任务
 * @Author wdf
 * @Date 2025/1/15 15:08
 */
@Slf4j
@Component("safeStockQtyCheck")
public class SafeStockQtyCheckTask {
    @Autowired
    private BaseSafetyStockService safetyStockService;


    public void stockCheck() {
        log.debug("安全库存检查任务开始执行");
        safetyStockService.checkSafetyStock();
        log.debug("安全库存检查任务执行结束");
    }
}
